Carbon


ClearCurrentScrap

Header: Scrap.h Carbon status: Supported

Clears the current scrap.

OSStatus ClearCurrentScrap ();
function result

A result code.

DISCUSSION

Call ClearCurrentScrap immediately when the user requests a Copy or Cut operation, even if you maintain a private scrap. You should not wait until receiving a suspend event to call ClearCurrentScrap. You don't need to put any data on the scrap immediately (although it's perfectly fine to do so). You do need to call GetCurrentScrap after ClearCurrentScrap so you'll have a valid scrap reference to pass to other functions.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)